package com.nbsaas.boot.cms.rest.convert;

import com.nbsaas.boot.cms.data.entity.ArticleTagRelation;
import com.nbsaas.boot.cms.api.domain.request.ArticleTagRelationRequest;

import org.springframework.beans.BeanUtils;
import com.nbsaas.boot.rest.api.Converter;
import com.nbsaas.boot.utils.BeanDataUtils;

/**
* 文章标签关联请求对象转换成实体对象
*/

public class ArticleTagRelationEntityConvert  implements Converter<ArticleTagRelation, ArticleTagRelationRequest> {

    @Override
    public ArticleTagRelation convert(ArticleTagRelationRequest source) {
        ArticleTagRelation result = new ArticleTagRelation();
        BeanDataUtils.copyProperties(source, result);
        return result;
    }
}

